#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int removeDuplicates(int* nums, int numsSize)
{
	int fast = 1;
	int slow = 0;
	while (fast < numsSize)
	{
		if (nums[slow] != nums[fast])
		{
			nums[++slow] = nums[fast];
		}
		fast;
	}
	return ++slow;
}